using System;
using System.Collections.Generic;
using System.Text;

namespace UMC.WorkFlow
{
    /// <summary>
    /// 标志属性为设置属性
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public class DesignAttribute : System.Attribute
    {
        /// <summary>
        /// 属性文本说明
        /// </summary>
        public string Caption { get; set; }
        /// <summary>
        /// 商品说明
        /// </summary>
        public string Explain { get; set; }
        /// <summary>
        /// 是否支持Value转Text
        /// </summary>
        public bool IsValueToText { get; set; }
        /// <summary>
        /// 设计属性
        /// </summary>
        public string ArgumentValue { get; set; }
        /// <summary>
        /// 参数类型
        /// </summary>
        public ArgumentType ArgumentType { get; set; }
    }
    /// <summary>
    /// 设置值转化文本接口
    /// </summary>
    public interface IDesignValueToText
    {
        string GetText(String name, object value);
    }
    /// <summary>
    /// 属性类型默认设计
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class DefaultDesignAttribute : System.Attribute
    {
        /// <summary>
        /// 设计属性
        /// </summary>
        public string ArgumentValue { get; set; }
        /// <summary>
        /// 参数类型
        /// </summary>
        public ArgumentType ArgumentType { get; set; }
    }
}
